<form method="POST" class="form-horizontal">
  <fieldset>
    <legend>Notification settings</legend>
    <label class="checkbox"><input type="checkbox" disabled> Email me daily with a snapshot of relevant vehicles.</label>
	<br>
    <label class="radio"><input name="email_vehicles" value="skip" type="radio" <?= (!$this->notifications['email_vehicles'] || $this->notifications['email_vehicles'] == 'skip')?'checked=checked':'' ?> > Don't email</label>
    <label class="radio"><input name="email_vehicles" value="every_new" type="radio" <?= ($this->notifications['email_vehicles'] == 'every_new')?'checked=checked':'' ?> > Email me every time a new vehicle lands in my feed</label>
    <label class="radio"><input name="email_vehicles" value="every10" type="radio" <?= ($this->notifications['email_vehicles'] == 'every10')?'checked=checked':'' ?> > Email me every 10 vehicles land in my feed</label>
	<br>

    <label class="radio"><input name="text_vehicles" value="skip" type="radio" <?= (!$this->notifications['text_vehicles'] || $this->notifications['text_vehicles'] == 'skip')?'checked=checked':'' ?> > Don't text</label>
    <label class="radio"><input name="text_vehicles" value="every_new" type="radio" <?= ($this->notifications['text_vehicles'] == 'every_new')?'checked=checked':'' ?> > Text me every time a new vehicle lands in my feed</label>
    <label class="radio"><input name="text_vehicles" value="every10" type="radio" <?= ($this->notifications['text_vehicles'] == 'every10')?'checked=checked':'' ?> > Text me every 10 vehicles land in my feed</label>


	<br>
    <label class="checkbox"><input name="rec_via_email" value="true" type="checkbox" <?= ($this->notifications['rec_via_email'] == 'true')?'checked=checked':'' ?>> Allow recomendations via email</label>
    <label class="checkbox"><input name="rec_via_text" value="true" type="checkbox" <?= ($this->notifications['rec_via_text'] == 'true')?'checked=checked':'' ?>> Allow recomendations via text</label>
	<br>
    <label class="checkbox"><input type="checkbox" value="true" name="via_newsletter" <?= ($this->notifications['via_newsletter'] == 'true')?'checked=checked':'' ?>> Add me to newsletter</label>

	<br>
    <label class="checkbox"><a href="javascript:alert('Not yet available');">Download smartphone application</a></label>
    <label class="checkbox"><a href="javascript:alert('Not yet available');">Download desktop application</a></label>
	<br>
    <label class="checkbox"><button type="submit" class="btn">Save</button></label>
  </fieldset>
</form>
